home *** CD-ROM | disk | FTP | other *** search
- /* ANSI C code generated by SmallEiffel. */
- /*
- -- SmallEiffel -- Release (- 0.97) -- FRANCE
- -- Copyright (C), 1994 - Dominique COLNET and Suzanne COLLIN
- -- University Henri Poincare' - Nancy 1 - email colnet@loria.fr
- -- CRIN (Centre de Recherche en Informatique de Nancy)
- -- FRANCE
- */
- #include "compile_to_c.h"
- void rT61expand(T61 *C){
- int _old_size=0;
- int _i=0;
- C->_item_mem=0;
- _old_size=XrT63count((C)->_store);
- rT55resize((T55*)(C)->_chain,1,(2)*(_old_size));
- rT41resize((T41*)(C)->_keys,1,(2)*(_old_size));
- XrT63resize((C)->_store,1,(2)*(_old_size));
- _i=(_old_size)+(1);
- while (!((_i)==(rT55count((T55*)(C)->_chain)))) {
- rT55put((T55*)(C)->_chain,(_i)+(1),_i);
- _i=(_i)+(1);
- }
- rT55put((T55*)(C)->_chain,(C)->_free,_i);
- C->_free=(_old_size)+(1);
- }
- int rT61has(T61 *C,T0* a1){
- int R=0;
- /*IF*/if ((((C)->_has_mem)==(0))||(!(rT7is_equal((T7*)a1,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_buckets,(rT7hash_code((T7*)a1))%((C)->_modulus));
- while (!((((C)->_has_mem)==(0))||(rT7is_equal((T7*)a1,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_chain,(C)->_has_mem);
- }
- }
- /*FI*/R=((C)->_has_mem)!=(0);
- return R;
- }
- void rT61make(T61 *C){
- int _i=0;
- C->_modulus=32;
- C->_count=0;
- C->_free=1;
- C->_has_mem=0;
- C->_item_mem=0;
- {T55 *n=((T55*)new(55));
- rT55make(n,0,((C)->_modulus)-(1));
- C->_buckets=(T0 *)n;}
- {T55 *n=((T55*)new(55));
- rT55make(n,1,16);
- C->_chain=(T0 *)n;}
- {T63 *n=((T63*)new(63));
- rT63make(n,1,16);
- C->_store=(T0 *)n;}
- {T41 *n=((T41*)new(41));
- rT41make(n,1,16);
- C->_keys=(T0 *)n;}
- _i=1;
- while (!((_i)==(rT55count((T55*)(C)->_chain)))) {
- rT55put((T55*)(C)->_chain,(_i)+(1),_i);
- _i=(_i)+(1);
- }
- rT55put((T55*)(C)->_chain,0,_i);
- _i=0;
- while (!((_i)>=((C)->_modulus))) {
- rT55put((T55*)(C)->_buckets,0,_i);
- _i=(_i)+(1);
- }
- }
- void rT57resize(T57 *C,int a1){
- int _p=0;
- int _n=0;
- int _i=0;
- T0* _new_buc=NULL;
- int _hash=0;
- {T55 *n=((T55*)new(55));
- rT55make(n,0,(a1)-(1));
- _new_buc=(T0 *)n;}
- _i=0;
- while (!((_i)>=((C)->_modulus))) {
- _n=rT55item((T55*)(C)->_buckets,_i);
- while (!((_n)==(0))) {
- _p=rT55item((T55*)(C)->_chain,_n);
- _hash=(rT7hash_code((T7*)rT41item((T41*)(C)->_keys,_n)))%(a1);
- rT55put((T55*)(C)->_chain,rT55item((T55*)_new_buc,_hash),_n);
- rT55put((T55*)_new_buc,_n,_hash);
- _n=_p;
- }
- _i=(_i)+(1);
- }
- C->_buckets=_new_buc;
- C->_modulus=a1;
- C->_item_mem=0;
- }
- T0* rT57clone(T57 *C,T0* a1){
- T0* R=NULL;
- /*IF*/if (((int)a1)) {
- R=(T0 *)new(a1->id);
- AF_1
- XrT28copy(R,a1);
- AF_0
- }
- /*FI*/return R;
- }
- T0* rT57at(T57 *C,T0* a1){
- T0* R=NULL;
- int _foo=0;
- _foo=rT57has(C,a1);
- R=rT41item((T41*)(C)->_store,(C)->_has_mem);
- return R;
- }
- void rT57put(T57 *C,T0* a1,T0* a2){
- int _hash=0;
- _hash=(rT7hash_code((T7*)a2))%((C)->_modulus);
- /*IF*/if ((((C)->_has_mem)==(0))||(!(rT7is_equal((T7*)a2,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_buckets,_hash);
- while (!((((C)->_has_mem)==(0))||(rT7is_equal((T7*)a2,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_chain,(C)->_has_mem);
- }
- /*IF*/if (((C)->_has_mem)==(0)) {
- /*IF*/if (((C)->_count)>=(rT41count((T41*)(C)->_store))) {
- rT57expand(C);
- }
- /*FI*/rT41put((T41*)(C)->_keys,a2,(C)->_free);
- rT41put((T41*)(C)->_store,a1,(C)->_free);
- C->_has_mem=(C)->_free;
- C->_free=rT55item((T55*)(C)->_chain,(C)->_free);
- rT55put((T55*)(C)->_chain,rT55item((T55*)(C)->_buckets,_hash),(C)->_has_mem);
- rT55put((T55*)(C)->_buckets,(C)->_has_mem,_hash);
- C->_count=((C)->_count)+(1);
- /*IF*/if (((C)->_count)>(((C)->_modulus)*(2))) {
- rT57resize(C,(2)*((C)->_modulus));
- }
- /*FI*/}
- /*FI*/}
- else {
- rT41put((T41*)(C)->_store,a1,(C)->_has_mem);
- }
- /*FI*/C->_item_mem=0;
- }
- void rT57standard_copy(T57 *C,T0 * a1){
- memcpy(C,a1,s[a1->id]);
- }
- void rT57copy(T57 *C,T0 * a1){
- rT57standard_copy(C,a1);
- C->_keys=rT57clone(C,((T57*)a1)->_keys);
- C->_store=rT57clone(C,((T57*)a1)->_store);
- C->_buckets=rT57clone(C,((T57*)a1)->_buckets);
- C->_chain=rT57clone(C,((T57*)a1)->_chain);
- }
- void rT57expand(T57 *C){
- int _old_size=0;
- int _i=0;
- C->_item_mem=0;
- _old_size=rT41count((T41*)(C)->_store);
- rT55resize((T55*)(C)->_chain,1,(2)*(_old_size));
- rT41resize((T41*)(C)->_keys,1,(2)*(_old_size));
- rT41resize((T41*)(C)->_store,1,(2)*(_old_size));
- _i=(_old_size)+(1);
- while (!((_i)==(rT55count((T55*)(C)->_chain)))) {
- rT55put((T55*)(C)->_chain,(_i)+(1),_i);
- _i=(_i)+(1);
- }
- rT55put((T55*)(C)->_chain,(C)->_free,_i);
- C->_free=(_old_size)+(1);
- }
- int rT57has(T57 *C,T0* a1){
- int R=0;
- /*IF*/if ((((C)->_has_mem)==(0))||(!(rT7is_equal((T7*)a1,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_buckets,(rT7hash_code((T7*)a1))%((C)->_modulus));
- while (!((((C)->_has_mem)==(0))||(rT7is_equal((T7*)a1,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_chain,(C)->_has_mem);
- }
- }
- /*FI*/R=((C)->_has_mem)!=(0);
- return R;
- }
- void rT57make(T57 *C){
- int _i=0;
- C->_modulus=32;
- C->_count=0;
- C->_free=1;
- C->_has_mem=0;
- C->_item_mem=0;
- {T55 *n=((T55*)new(55));
- rT55make(n,0,((C)->_modulus)-(1));
- C->_buckets=(T0 *)n;}
- {T55 *n=((T55*)new(55));
- rT55make(n,1,16);
- C->_chain=(T0 *)n;}
- {T41 *n=((T41*)new(41));
- rT41make(n,1,16);
- C->_store=(T0 *)n;}
- {T41 *n=((T41*)new(41));
- rT41make(n,1,16);
- C->_keys=(T0 *)n;}
- _i=1;
- while (!((_i)==(rT55count((T55*)(C)->_chain)))) {
- rT55put((T55*)(C)->_chain,(_i)+(1),_i);
- _i=(_i)+(1);
- }
- rT55put((T55*)(C)->_chain,0,_i);
- _i=0;
- while (!((_i)>=((C)->_modulus))) {
- rT55put((T55*)(C)->_buckets,0,_i);
- _i=(_i)+(1);
- }
- }
- void rT54forth(T54 *C){
- int _i=0;
- /*IF*/if ((rT55item((T55*)(C)->_chain,(C)->_item_mem_j))!=(0)) {
- C->_item_mem_j=rT55item((T55*)(C)->_chain,(C)->_item_mem_j);
- }
- else {
- _i=((C)->_item_mem_i)+(1);
- while (!((rT55item((T55*)(C)->_buckets,_i))!=(0))) {
- _i=(_i)+(1);
- }
- C->_item_mem_i=_i;
- C->_item_mem_j=rT55item((T55*)(C)->_buckets,_i);
- }
- /*FI*/C->_item_mem=((C)->_item_mem)+(1);
- }
- void rT54first(T54 *C){
- int _i=0;
- _i=0;
- while (!((rT55item((T55*)(C)->_buckets,_i))!=(0))) {
- _i=(_i)+(1);
- }
- C->_item_mem_i=_i;
- C->_item_mem_j=rT55item((T55*)(C)->_buckets,_i);
- C->_item_mem=1;
- }
- void rT54resize(T54 *C,int a1){
- int _p=0;
- int _n=0;
- int _i=0;
- T0* _new_buc=NULL;
- int _hash=0;
- {T55 *n=((T55*)new(55));
- rT55make(n,0,(a1)-(1));
- _new_buc=(T0 *)n;}
- _i=0;
- while (!((_i)>=((C)->_modulus))) {
- _n=rT55item((T55*)(C)->_buckets,_i);
- while (!((_n)==(0))) {
- _p=rT55item((T55*)(C)->_chain,_n);
- _hash=(rT7hash_code((T7*)rT41item((T41*)(C)->_keys,_n)))%(a1);
- rT55put((T55*)(C)->_chain,rT55item((T55*)_new_buc,_hash),_n);
- rT55put((T55*)_new_buc,_n,_hash);
- _n=_p;
- }
- _i=(_i)+(1);
- }
- C->_buckets=_new_buc;
- C->_modulus=a1;
- C->_item_mem=0;
- }
- T0 * rT54item(T54 *C,int a1){
- T0 * R=NULL;
- /*IF*/if (((C)->_item_mem)==(0)) {
- rT54first(C);
- while (!((a1)==((C)->_item_mem))) {
- rT54forth(C);
- }
- R=rT56item((T56*)(C)->_store,(C)->_item_mem_j);
- }
- else if (((C)->_item_mem)<=(a1)) {
- while (!((a1)==((C)->_item_mem))) {
- rT54forth(C);
- }
- R=rT56item((T56*)(C)->_store,(C)->_item_mem_j);
- }
- else {
- C->_item_mem=0;
- R=rT54item(C,a1);
- }
- /*FI*/return R;
- }
- T0* rT54clone(T54 *C,T0* a1){
- T0* R=NULL;
- /*IF*/if (((int)a1)) {
- R=(T0 *)new(a1->id);
- AF_1
- XrT28copy(R,a1);
- AF_0
- }
- /*FI*/return R;
- }
- T0 * rT54at(T54 *C,T0* a1){
- T0 * R=NULL;
- int _foo=0;
- _foo=rT54has(C,a1);
- R=rT56item((T56*)(C)->_store,(C)->_has_mem);
- return R;
- }
- void rT54put(T54 *C,T0 * a1,T0* a2){
- int _hash=0;
- _hash=(rT7hash_code((T7*)a2))%((C)->_modulus);
- /*IF*/if ((((C)->_has_mem)==(0))||(!(rT7is_equal((T7*)a2,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_buckets,_hash);
- while (!((((C)->_has_mem)==(0))||(rT7is_equal((T7*)a2,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_chain,(C)->_has_mem);
- }
- /*IF*/if (((C)->_has_mem)==(0)) {
- /*IF*/if (((C)->_count)>=(rT56count((T56*)(C)->_store))) {
- rT54expand(C);
- }
- /*FI*/rT41put((T41*)(C)->_keys,a2,(C)->_free);
- rT56put((T56*)(C)->_store,a1,(C)->_free);
- C->_has_mem=(C)->_free;
- C->_free=rT55item((T55*)(C)->_chain,(C)->_free);
- rT55put((T55*)(C)->_chain,rT55item((T55*)(C)->_buckets,_hash),(C)->_has_mem);
- rT55put((T55*)(C)->_buckets,(C)->_has_mem,_hash);
- C->_count=((C)->_count)+(1);
- /*IF*/if (((C)->_count)>(((C)->_modulus)*(2))) {
- rT54resize(C,(2)*((C)->_modulus));
- }
- /*FI*/}
- /*FI*/}
- else {
- rT56put((T56*)(C)->_store,a1,(C)->_has_mem);
- }
- /*FI*/C->_item_mem=0;
- }
- void rT54standard_copy(T54 *C,T0 * a1){
- memcpy(C,a1,s[a1->id]);
- }
- void rT54copy(T54 *C,T0 * a1){
- rT54standard_copy(C,a1);
- C->_keys=rT54clone(C,((T54*)a1)->_keys);
- C->_store=rT54clone(C,((T54*)a1)->_store);
- C->_buckets=rT54clone(C,((T54*)a1)->_buckets);
- C->_chain=rT54clone(C,((T54*)a1)->_chain);
- }
- void rT54expand(T54 *C){
- int _old_size=0;
- int _i=0;
- C->_item_mem=0;
- _old_size=rT56count((T56*)(C)->_store);
- rT55resize((T55*)(C)->_chain,1,(2)*(_old_size));
- rT41resize((T41*)(C)->_keys,1,(2)*(_old_size));
- rT56resize((T56*)(C)->_store,1,(2)*(_old_size));
- _i=(_old_size)+(1);
- while (!((_i)==(rT55count((T55*)(C)->_chain)))) {
- rT55put((T55*)(C)->_chain,(_i)+(1),_i);
- _i=(_i)+(1);
- }
- rT55put((T55*)(C)->_chain,(C)->_free,_i);
- C->_free=(_old_size)+(1);
- }
- int rT54has(T54 *C,T0* a1){
- int R=0;
- /*IF*/if ((((C)->_has_mem)==(0))||(!(rT7is_equal((T7*)a1,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_buckets,(rT7hash_code((T7*)a1))%((C)->_modulus));
- while (!((((C)->_has_mem)==(0))||(rT7is_equal((T7*)a1,rT41item((T41*)(C)->_keys,(C)->_has_mem))))) {
- C->_has_mem=rT55item((T55*)(C)->_chain,(C)->_has_mem);
- }
- }
- /*FI*/R=((C)->_has_mem)!=(0);
- return R;
- }
- void rT54make(T54 *C){
- int _i=0;
- C->_modulus=32;
- C->_count=0;
- C->_free=1;
- C->_has_mem=0;
- C->_item_mem=0;
- {T55 *n=((T55*)new(55));
- rT55make(n,0,((C)->_modulus)-(1));
- C->_buckets=(T0 *)n;}
- {T55 *n=((T55*)new(55));
- rT55make(n,1,16);
- C->_chain=(T0 *)n;}
- {T56 *n=((T56*)new(56));
- rT56make(n,1,16);
- C->_store=(T0 *)n;}
- {T41 *n=((T41*)new(41));
- rT41make(n,1,16);
- C->_keys=(T0 *)n;}
- _i=1;
- while (!((_i)==(rT55count((T55*)(C)->_chain)))) {
- rT55put((T55*)(C)->_chain,(_i)+(1),_i);
- _i=(_i)+(1);
- }
- rT55put((T55*)(C)->_chain,0,_i);
- _i=0;
- while (!((_i)>=((C)->_modulus))) {
- rT55put((T55*)(C)->_buckets,0,_i);
- _i=(_i)+(1);
- }
- }
- T0 * rT247current_type(T247 *C){
- T0 * R=NULL;
- /*IF*/if (((int)(C)->_run_compound)) {
- R=((T140*)(C)->_run_compound)->_current_type;
- }
- /*FI*/return R;
- }
- void rT247fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- T0 * rT247to_runnable(T247 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if (!((C)->_run_compound)) {
- rT247check_writable(C,a1);
- rT247check_explicit_type(C);
- rT247check_created_type(C,(C)->_type);
- rT247check_creation_clause(C,(C)->_type);
- R=(T0 *)C;
- }
- else {
- {T247 *n=((T247*)new(247));
- rT247make(n,(C)->_start_position,(C)->_type,(C)->_writable,(C)->_call);
- R=(T0 *)n;}
- R=rT247to_runnable((T247*)R,a1);
- }
- /*FI*/return R;
- }
- void rT247error(/*C*/T0 * a1,T0* a2){
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(a1);
- rT45error((T45*)oRBC27eh,a2);
- }
- T0 * rT247add_comment(T247 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- /*AF*/else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/return R;
- }
- int rT247use_current(T247 *C){
- int R=0;
- /*IF*/if (((int)(C)->_run_args)) {
- R=rT170use_current((T170*)(C)->_run_args);
- }
- /*FI*/R=(R)||(XrT68use_current((C)->_writable));
- return R;
- }
- void rT247compile_to_c(T247 *C){
- int _id=0;
- _id=XrT58id((C)->_type);
- rT40rs_push_position((T40*)oRBC27cpp,'5',(C)->_start_position);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1321);
- rT40put_integer((T40*)oRBC27cpp,_id);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1322);
- rT40put_new_id((T40*)oRBC27cpp,_id);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1323);
- rT40expanded_attributes((T40*)oRBC27cpp,(T0 *)ms1324,NULL,(C)->_type);
- rT40push_new((T40*)oRBC27cpp,(C)->_run_feature,(C)->_run_args);
- XrT261mapping_c((C)->_run_feature);
- rT40pop((T40*)oRBC27cpp);
- XrT68compile_to_c((C)->_writable);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1325);
- rT247call_invariant(C,(C)->_type);
- rT40rs_pop_position((T40*)oRBC27cpp);
- }
- void rT247copy(T247 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT247call_invariant(T247 *C,T0 * a1){
- /*IF*/if (rT40call_invariant_start((T40*)oRBC27cpp,a1)) {
- XrT58mapping_cast(a1);
- XrT68compile_to_c((C)->_writable);
- rT40call_invariant_end((T40*)oRBC27cpp);
- rT40put_character((T40*)oRBC27cpp,'\73');
- }
- /*FI*/}
- int rT247arg_count(T247 *C){
- int R=0;
- /*IF*/if (((int)(C)->_call)) {
- R=XrT177arg_count((C)->_call);
- }
- /*FI*/return R;
- }
- int rT247is_pre_computable(T247 *C){
- int R=0;
- T0* _rfctn=NULL;
- T0 * _rfct=NULL;
- int _i=0;
- /*IF*/if (XrT68is_result((C)->_writable)) {
- /*IF*/if (!((C)->_run_args)) {
- R=1;
- }
- else {
- R=1;
- _i=rT170count((T170*)(C)->_run_args);
- while (!((!(R))||((_i)==(0)))) {
- R=XrT68is_pre_computable(rT170expression((T170*)(C)->_run_args,_i));
- _i=(_i)-(1);
- }
- }
- /*FI*//*IF*/if (R) {
- /*IF*/if (XrT261is_pre_computable((C)->_run_feature)) {
- R=1;
- }
- else if (rT7is_equal(ms1595,XrT67to_string(XrT261name((C)->_run_feature)))) {
- _rfct=XrT261current_type((C)->_run_feature);
- R=(XrT58is_array(_rfct))||(XrT58is_string(_rfct));
- /*IF*/if (!(R)) {
- _rfctn=XrT58run_time_mark(_rfct);
- R=(rT7has_prefix((T7*)_rfctn,(T0 *)ms1596))||(rT7has_prefix((T7*)_rfctn,(T0 *)ms1597));
- }
- /*FI*/}
- /*FI*/}
- /*FI*/}
- /*FI*/return R;
- }
- void rT247check_creation_clause(T247 *C,T0 * a1){
- T0 * _proc_name=NULL;
- _proc_name=XrT177procedure_name((C)->_call);
- /*IF*/if (!(XrT58has_creation(a1,_proc_name))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT67start_position(_proc_name));
- /*UT*/(T45*)oRBC27eh;
- rT45append(XrT67to_string(_proc_name));
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1254);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms38);
- rT45print_as_error((T45*)oRBC27eh);
- }
- /*FI*//*IF*/if ((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0)) {
- C->_run_feature=rT260get_feature((T260*)XrT58run_class(a1),_proc_name);
- /*IF*/if (!((C)->_run_feature)) {
- rT247error(XrT67start_position(_proc_name),(T0 *)ms1255);
- }
- else {
- XrT261add_clients((C)->_run_feature,rT140run_class((T140*)(C)->_run_compound));
- /*IF*/if (((int)XrT261result_type((C)->_run_feature))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT261start_position((C)->_run_feature));
- rT247error(XrT67start_position(_proc_name),(T0 *)ms1256);
- }
- /*FI*/}
- /*FI*//*IF*/if ((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0)) {
- /*IF*/if (((rT247arg_count(C))==(0))&&(((int)XrT261arguments((C)->_run_feature)))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT261start_position((C)->_run_feature));
- rT247error((C)->_start_position,(T0 *)ms1257);
- }
- /*FI*/}
- /*FI*//*IF*/if (((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0))&&((rT247arg_count(C))>(0))) {
- C->_run_args=rT170to_runnable((T170*)XrT177arguments((C)->_call),rT247current_type(C));
- /*IF*/if (!((C)->_run_args)) {
- rT247error(rT170start_position((T170*)XrT177arguments((C)->_call)),(T0 *)ms1258);
- }
- else {
- rT170match_with((T170*)(C)->_run_args,(C)->_run_feature);
- }
- /*FI*/}
- /*FI*/}
- /*FI*/}
- void rT247check_created_type(T247 *C,T0 * a1){
- T0 * _rt=NULL;
- _rt=XrT58run_type(a1);
- /*IF*/if (((T50*)XrT58base_class(_rt))->_is_deferred) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(_rt,(T0 *)ms1243);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- rT247fatal_error((T0 *)ms1244);
- }
- /*FI*//*IF*/if (XrT58is_expanded(_rt)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1245);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1246);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*//*IF*/if (XrT58is_formal_generic(a1)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1247);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1248);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*/rT260set_at_run_time((T260*)XrT58run_class(_rt));
- }
- void rT247check_explicit_type(T247 *C){
- T0 * _t=NULL;
- _t=XrT58to_runnable((C)->_type,rT247current_type(C));
- /*IF*/if ((!(_t))||(!(XrT58is_run_type(_t)))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT58start_position((C)->_type));
- rT247fatal_error((T0 *)ms1252);
- }
- /*FI*//*IF*/if (!(XrT58is_a((C)->_type,XrT68result_type((C)->_writable)))) {
- rT247fatal_error((T0 *)ms1253);
- }
- /*FI*/}
- void rT247check_writable(T247 *C,T0 * a1){
- T0 * _w=NULL;
- C->_run_compound=a1;
- _w=XrT68to_runnable((C)->_writable,rT247current_type(C));
- /*IF*/if (!(_w)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT68start_position((C)->_writable));
- rT247fatal_error((T0 *)ms1242);
- }
- else {
- C->_writable=_w;
- }
- /*FI*/}
- void rT247make(T247 *C,T0 * a1,T0 * a2,T0 * a3,T0 * a4){
- C->_start_position=a1;
- C->_type=a2;
- C->_writable=a3;
- C->_call=a4;
- }
- T0 * rT245current_type(T245 *C){
- T0 * R=NULL;
- /*IF*/if (((int)(C)->_run_compound)) {
- R=((T140*)(C)->_run_compound)->_current_type;
- }
- /*FI*/return R;
- }
- void rT245fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- T0 * rT245to_runnable(T245 *C,T0 * a1){
- T0 * R=NULL;
- T0 * _t=NULL;
- /*IF*/if (!((C)->_run_compound)) {
- rT245check_writable(C,a1);
- _t=XrT68result_type((C)->_writable);
- rT245check_created_type(C,_t);
- rT245check_creation_clause(C,_t);
- R=(T0 *)C;
- }
- else {
- {T245 *n=((T245*)new(245));
- rT245make(n,(C)->_start_position,(C)->_writable,(C)->_call);
- R=(T0 *)n;}
- R=rT245to_runnable((T245*)R,a1);
- }
- /*FI*/return R;
- }
- void rT245error(/*C*/T0 * a1,T0* a2){
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(a1);
- rT45error((T45*)oRBC27eh,a2);
- }
- T0 * rT245add_comment(T245 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- /*AF*/else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/return R;
- }
- int rT245use_current(T245 *C){
- int R=0;
- /*IF*/if (((int)(C)->_run_args)) {
- R=rT170use_current((T170*)(C)->_run_args);
- }
- /*FI*/R=(R)||(XrT68use_current((C)->_writable));
- return R;
- }
- void rT245compile_to_c(T245 *C){
- int _id=0;
- T0 * _t=NULL;
- rT40rs_push_position((T40*)oRBC27cpp,'5',(C)->_start_position);
- _t=XrT58run_type(XrT68result_type((C)->_writable));
- _id=XrT58id(_t);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1316);
- rT40put_integer((T40*)oRBC27cpp,_id);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1317);
- rT40put_new_id((T40*)oRBC27cpp,_id);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1318);
- rT40expanded_attributes((T40*)oRBC27cpp,(T0 *)ms1319,NULL,_t);
- rT40push_new((T40*)oRBC27cpp,(C)->_run_feature,(C)->_run_args);
- XrT261mapping_c((C)->_run_feature);
- rT40pop((T40*)oRBC27cpp);
- XrT68compile_to_c((C)->_writable);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1320);
- rT245call_invariant(C,_t);
- rT40rs_pop_position((T40*)oRBC27cpp);
- }
- void rT245copy(T245 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT245call_invariant(T245 *C,T0 * a1){
- /*IF*/if (rT40call_invariant_start((T40*)oRBC27cpp,a1)) {
- XrT58mapping_cast(a1);
- XrT68compile_to_c((C)->_writable);
- rT40call_invariant_end((T40*)oRBC27cpp);
- rT40put_character((T40*)oRBC27cpp,'\73');
- }
- /*FI*/}
- int rT245arg_count(T245 *C){
- int R=0;
- /*IF*/if (((int)(C)->_call)) {
- R=XrT177arg_count((C)->_call);
- }
- /*FI*/return R;
- }
- int rT245is_pre_computable(T245 *C){
- int R=0;
- T0* _rfctn=NULL;
- T0 * _rfct=NULL;
- int _i=0;
- /*IF*/if (XrT68is_result((C)->_writable)) {
- /*IF*/if (!((C)->_run_args)) {
- R=1;
- }
- else {
- R=1;
- _i=rT170count((T170*)(C)->_run_args);
- while (!((!(R))||((_i)==(0)))) {
- R=XrT68is_pre_computable(rT170expression((T170*)(C)->_run_args,_i));
- _i=(_i)-(1);
- }
- }
- /*FI*//*IF*/if (R) {
- /*IF*/if (XrT261is_pre_computable((C)->_run_feature)) {
- R=1;
- }
- else if (rT7is_equal(ms1595,XrT67to_string(XrT261name((C)->_run_feature)))) {
- _rfct=XrT261current_type((C)->_run_feature);
- R=(XrT58is_array(_rfct))||(XrT58is_string(_rfct));
- /*IF*/if (!(R)) {
- _rfctn=XrT58run_time_mark(_rfct);
- R=(rT7has_prefix((T7*)_rfctn,(T0 *)ms1596))||(rT7has_prefix((T7*)_rfctn,(T0 *)ms1597));
- }
- /*FI*/}
- /*FI*/}
- /*FI*/}
- /*FI*/return R;
- }
- void rT245check_creation_clause(T245 *C,T0 * a1){
- T0 * _proc_name=NULL;
- _proc_name=XrT177procedure_name((C)->_call);
- /*IF*/if (!(XrT58has_creation(a1,_proc_name))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT67start_position(_proc_name));
- /*UT*/(T45*)oRBC27eh;
- rT45append(XrT67to_string(_proc_name));
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1254);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms38);
- rT45print_as_error((T45*)oRBC27eh);
- }
- /*FI*//*IF*/if ((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0)) {
- C->_run_feature=rT260get_feature((T260*)XrT58run_class(a1),_proc_name);
- /*IF*/if (!((C)->_run_feature)) {
- rT245error(XrT67start_position(_proc_name),(T0 *)ms1255);
- }
- else {
- XrT261add_clients((C)->_run_feature,rT140run_class((T140*)(C)->_run_compound));
- /*IF*/if (((int)XrT261result_type((C)->_run_feature))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT261start_position((C)->_run_feature));
- rT245error(XrT67start_position(_proc_name),(T0 *)ms1256);
- }
- /*FI*/}
- /*FI*//*IF*/if ((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0)) {
- /*IF*/if (((rT245arg_count(C))==(0))&&(((int)XrT261arguments((C)->_run_feature)))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT261start_position((C)->_run_feature));
- rT245error((C)->_start_position,(T0 *)ms1257);
- }
- /*FI*/}
- /*FI*//*IF*/if (((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0))&&((rT245arg_count(C))>(0))) {
- C->_run_args=rT170to_runnable((T170*)XrT177arguments((C)->_call),rT245current_type(C));
- /*IF*/if (!((C)->_run_args)) {
- rT245error(rT170start_position((T170*)XrT177arguments((C)->_call)),(T0 *)ms1258);
- }
- else {
- rT170match_with((T170*)(C)->_run_args,(C)->_run_feature);
- }
- /*FI*/}
- /*FI*/}
- /*FI*/}
- void rT245check_created_type(T245 *C,T0 * a1){
- T0 * _rt=NULL;
- _rt=XrT58run_type(a1);
- /*IF*/if (((T50*)XrT58base_class(_rt))->_is_deferred) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(_rt,(T0 *)ms1243);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- rT245fatal_error((T0 *)ms1244);
- }
- /*FI*//*IF*/if (XrT58is_expanded(_rt)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1245);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1246);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*//*IF*/if (XrT58is_formal_generic(a1)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1247);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1248);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*/rT260set_at_run_time((T260*)XrT58run_class(_rt));
- }
- void rT245check_writable(T245 *C,T0 * a1){
- T0 * _w=NULL;
- C->_run_compound=a1;
- _w=XrT68to_runnable((C)->_writable,rT245current_type(C));
- /*IF*/if (!(_w)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT68start_position((C)->_writable));
- rT245fatal_error((T0 *)ms1242);
- }
- else {
- C->_writable=_w;
- }
- /*FI*/}
- void rT245make(T245 *C,T0 * a1,T0 * a2,T0 * a3){
- C->_start_position=a1;
- C->_writable=a2;
- C->_call=a3;
- }
- T0 * rT243current_type(T243 *C){
- T0 * R=NULL;
- /*IF*/if (((int)(C)->_run_compound)) {
- R=((T140*)(C)->_run_compound)->_current_type;
- }
- /*FI*/return R;
- }
- void rT243fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- T0 * rT243to_runnable(T243 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if (!((C)->_run_compound)) {
- rT243check_writable(C,a1);
- rT243check_explicit_type(C);
- rT243check_created_type(C,(C)->_type);
- rT243check_creation_clause(C,(C)->_type);
- R=(T0 *)C;
- }
- else {
- {T243 *n=((T243*)new(243));
- rT243make(n,(C)->_start_position,(C)->_type,(C)->_writable);
- R=(T0 *)n;}
- R=rT243to_runnable((T243*)R,a1);
- }
- /*FI*/return R;
- }
- void rT243error(/*C*/T0 * a1,T0* a2){
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(a1);
- rT45error((T45*)oRBC27eh,a2);
- }
- T0 * rT243add_comment(T243 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- /*AF*/else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/return R;
- }
- int rT243use_current(T243 *C){
- int R=0;
- R=XrT68use_current((C)->_writable);
- return R;
- }
- void rT243compile_to_c(T243 *C){
- rT40rs_push_position((T40*)oRBC27cpp,'5',(C)->_start_position);
- XrT68compile_to_c((C)->_writable);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1314);
- rT40put_new((T40*)oRBC27cpp,(C)->_type);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1315);
- rT40expanded_attributes((T40*)oRBC27cpp,NULL,(C)->_writable,(C)->_type);
- rT243call_invariant(C,(C)->_type);
- rT40rs_pop_position((T40*)oRBC27cpp);
- }
- void rT243copy(T243 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT243call_invariant(T243 *C,T0 * a1){
- /*IF*/if (rT40call_invariant_start((T40*)oRBC27cpp,a1)) {
- XrT58mapping_cast(a1);
- XrT68compile_to_c((C)->_writable);
- rT40call_invariant_end((T40*)oRBC27cpp);
- rT40put_character((T40*)oRBC27cpp,'\73');
- }
- /*FI*/}
- int rT243is_pre_computable(T243 *C){
- int R=0;
- T0 * _args=NULL;
- int _i=0;
- R=XrT68is_result((C)->_writable);
- return R;
- }
- void rT243check_creation_clause(T243 *C,T0 * a1){
- /*IF*/if (rT50has_creation_clause((T50*)XrT58base_class(a1))) {
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1249);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1250);
- rT243error((C)->_start_position,(T0 *)ms1251);
- }
- /*FI*/}
- void rT243check_created_type(T243 *C,T0 * a1){
- T0 * _rt=NULL;
- _rt=XrT58run_type(a1);
- /*IF*/if (((T50*)XrT58base_class(_rt))->_is_deferred) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(_rt,(T0 *)ms1243);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- rT243fatal_error((T0 *)ms1244);
- }
- /*FI*//*IF*/if (XrT58is_expanded(_rt)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1245);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1246);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*//*IF*/if (XrT58is_formal_generic(a1)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1247);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1248);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*/rT260set_at_run_time((T260*)XrT58run_class(_rt));
- }
- void rT243check_explicit_type(T243 *C){
- T0 * _t=NULL;
- _t=XrT58to_runnable((C)->_type,rT243current_type(C));
- /*IF*/if ((!(_t))||(!(XrT58is_run_type(_t)))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT58start_position((C)->_type));
- rT243fatal_error((T0 *)ms1252);
- }
- /*FI*//*IF*/if (!(XrT58is_a((C)->_type,XrT68result_type((C)->_writable)))) {
- rT243fatal_error((T0 *)ms1253);
- }
- /*FI*/}
- void rT243check_writable(T243 *C,T0 * a1){
- T0 * _w=NULL;
- C->_run_compound=a1;
- _w=XrT68to_runnable((C)->_writable,rT243current_type(C));
- /*IF*/if (!(_w)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT68start_position((C)->_writable));
- rT243fatal_error((T0 *)ms1242);
- }
- else {
- C->_writable=_w;
- }
- /*FI*/}
- void rT243make(T243 *C,T0 * a1,T0 * a2,T0 * a3){
- C->_start_position=a1;
- C->_type=a2;
- C->_writable=a3;
- }
- T0 * rT240current_type(T240 *C){
- T0 * R=NULL;
- /*IF*/if (((int)(C)->_run_compound)) {
- R=((T140*)(C)->_run_compound)->_current_type;
- }
- /*FI*/return R;
- }
- void rT240fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- T0 * rT240to_runnable(T240 *C,T0 * a1){
- T0 * R=NULL;
- T0 * _t=NULL;
- /*IF*/if (!((C)->_run_compound)) {
- rT240check_writable(C,a1);
- _t=XrT68result_type((C)->_writable);
- rT240check_created_type(C,_t);
- rT240check_creation_clause(C,_t);
- R=(T0 *)C;
- }
- else {
- {T240 *n=((T240*)new(240));
- rT240make(n,(C)->_start_position,(C)->_writable);
- R=(T0 *)n;}
- R=rT240to_runnable((T240*)R,a1);
- }
- /*FI*/return R;
- }
- void rT240error(/*C*/T0 * a1,T0* a2){
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(a1);
- rT45error((T45*)oRBC27eh,a2);
- }
- T0 * rT240add_comment(T240 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- /*AF*/else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/return R;
- }
- int rT240use_current(T240 *C){
- int R=0;
- R=XrT68use_current((C)->_writable);
- return R;
- }
- void rT240compile_to_c(T240 *C){
- T0 * _t=NULL;
- rT40rs_push_position((T40*)oRBC27cpp,'5',(C)->_start_position);
- _t=XrT58run_type(XrT68result_type((C)->_writable));
- XrT68compile_to_c((C)->_writable);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1312);
- rT40put_new((T40*)oRBC27cpp,_t);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1313);
- rT40expanded_attributes((T40*)oRBC27cpp,NULL,(C)->_writable,_t);
- rT240call_invariant(C,_t);
- rT40rs_pop_position((T40*)oRBC27cpp);
- }
- void rT240copy(T240 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT240call_invariant(T240 *C,T0 * a1){
- /*IF*/if (rT40call_invariant_start((T40*)oRBC27cpp,a1)) {
- XrT58mapping_cast(a1);
- XrT68compile_to_c((C)->_writable);
- rT40call_invariant_end((T40*)oRBC27cpp);
- rT40put_character((T40*)oRBC27cpp,'\73');
- }
- /*FI*/}
- int rT240is_pre_computable(T240 *C){
- int R=0;
- T0 * _args=NULL;
- int _i=0;
- R=XrT68is_result((C)->_writable);
- return R;
- }
- void rT240check_creation_clause(T240 *C,T0 * a1){
- /*IF*/if (rT50has_creation_clause((T50*)XrT58base_class(a1))) {
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1249);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1250);
- rT240error((C)->_start_position,(T0 *)ms1251);
- }
- /*FI*/}
- void rT240check_created_type(T240 *C,T0 * a1){
- T0 * _rt=NULL;
- _rt=XrT58run_type(a1);
- /*IF*/if (((T50*)XrT58base_class(_rt))->_is_deferred) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(_rt,(T0 *)ms1243);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- rT240fatal_error((T0 *)ms1244);
- }
- /*FI*//*IF*/if (XrT58is_expanded(_rt)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1245);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1246);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*//*IF*/if (XrT58is_formal_generic(a1)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position((C)->_start_position);
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1247);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1248);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*/rT260set_at_run_time((T260*)XrT58run_class(_rt));
- }
- void rT240check_writable(T240 *C,T0 * a1){
- T0 * _w=NULL;
- C->_run_compound=a1;
- _w=XrT68to_runnable((C)->_writable,rT240current_type(C));
- /*IF*/if (!(_w)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT68start_position((C)->_writable));
- rT240fatal_error((T0 *)ms1242);
- }
- else {
- C->_writable=_w;
- }
- /*FI*/}
- void rT240make(T240 *C,T0 * a1,T0 * a2){
- C->_start_position=a1;
- C->_writable=a2;
- }
- T0 * rT215current_type(T215 *C){
- T0 * R=NULL;
- /*IF*/if (((int)(C)->_run_compound)) {
- R=((T140*)(C)->_run_compound)->_current_type;
- }
- /*FI*/return R;
- }
- T0 * rT215to_runnable(T215 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if (rT44boost((T44*)oRBC27eiffel_run_control)) {
- C->_run_compound=a1;
- R=(T0 *)C;
- }
- else if (!((C)->_run_compound)) {
- C->_run_compound=a1;
- /*IF*/if (((int)(C)->_compound)) {
- C->_compound=rT140to_runnable((T140*)(C)->_compound,rT215current_type(C));
- }
- /*FI*/R=(T0 *)C;
- }
- else if (((T0 *)(C)->_run_compound)==((T0 *)a1)) {
- R=(T0 *)C;
- }
- else {
- {T215 *n=((T215*)new(215));
- rT215make(n,(C)->_start_position,(C)->_list,(C)->_compound);
- R=(T0 *)n;}
- R=rT215to_runnable((T215*)R,a1);
- }
- /*FI*/return R;
- }
- T0 * rT215add_comment(T215 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- else {/*AT*//*IF*/if ((rT59count((T59*)a1))==(1)) {
- R=(T0 *)C;
- }
- else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/}
- /*FI*/return R;
- }
- int rT215use_current(T215 *C){
- int R=0;
- /*IF*/if (rT44all_check((T44*)oRBC27eiffel_run_control)) {
- /*IF*/if (((int)(C)->_compound)) {
- R=rT140use_current((T140*)(C)->_compound);
- }
- /*FI*/}
- /*FI*/return R;
- }
- void rT215compile_to_c(T215 *C){
- /*IF*/if (rT44all_check((T44*)oRBC27eiffel_run_control)) {
- /*IF*/if (((int)(C)->_compound)) {
- rT140compile_to_c((T140*)(C)->_compound);
- }
- /*FI*/}
- /*FI*/}
- void rT215copy(T215 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT215make(T215 *C,T0 * a1,T0* a2,T0 * a3){
- C->_start_position=a1;
- C->_list=a2;
- C->_compound=a3;
- }
- void rT132fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- T0 * rT132start_position(T132 *C){
- T0 * R=NULL;
- R=XrT67start_position(rT128item((T128*)(C)->_procedure_list,1));
- return R;
- }
- void rT132copy(T132 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- T0 * rT132expanded_initializer(T132 *C,T0 * a1){
- T0 * R=NULL;
- R=rT260get_feature((T260*)XrT58run_class(a1),rT128item((T128*)(C)->_procedure_list,1));
- return R;
- }
- int rT132has(T132 *C,T0 * a1){
- int R=0;
- R=rT128has((T128*)(C)->_procedure_list,a1);
- return R;
- }
- void rT132check_expanded_with(T132 *C,T0 * a1){
- T0 * _rf3=NULL;
- T0 * _rf=NULL;
- /*IF*/if ((rT128count((T128*)(C)->_procedure_list))>(1)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1425);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT132start_position(C));
- /*(IRF3*/rT132fatal_error((T0 *)ms1424);
- /*)*/}
- /*FI*/_rf=rT260get_feature((T260*)XrT58run_class(a1),rT128item((T128*)(C)->_procedure_list,1));
- /*IF*/if (!(_rf)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT132start_position(C));
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1426);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1427);
- rT45print_as_fatal_error((T45*)oRBC27eh);
- }
- /*FI*/_rf3=_rf;
- if ((int)_rf3) switch (((T0 *)_rf3)->id) {
- case 266:
- break;
- default:
- _rf3 = NULL;
- };/*IF*/if (!(_rf3)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT132start_position(C));
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT261start_position(_rf));
- rT132fatal_error((T0 *)ms1428);
- }
- /*FI*//*IF*/if ((rT266arg_count((T266*)_rf3))>(0)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1429);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT132start_position(C));
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT266start_position((T266*)_rf3));
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1430);
- /*(IRF3*/rT132fatal_error((T0 *)ms1424);
- /*)*/}
- /*FI*/}
- void rT132make(T132 *C,T0 * a1,T0 * a2,T0* a3){
- C->_clients=a1;
- C->_comment=a2;
- {T128 *n=((T128*)new(128));
- rT128make(n,a3);
- C->_procedure_list=(T0 *)n;}
- }
- T0 * rT133get_clause(T133 *C,T0 * a1){
- T0 * R=NULL;
- int _i=0;
- _i=1;
- while (!(((_i)>(((T134*)(C)->_list)->_upper))||(rT132has((T132*)rT134item((T134*)(C)->_list,_i),a1)))) {
- _i=(_i)+(1);
- }
- /*IF*/if ((_i)<=(((T134*)(C)->_list)->_upper)) {
- R=rT134item((T134*)(C)->_list,_i);
- }
- /*FI*/return R;
- }
- void rT133fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- void rT133add_last(T133 *C,T0 * a1){
- rT134add_last((T134*)(C)->_list,a1);
- }
- void rT133copy(T133 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- T0 * rT133expanded_initializer(T133 *C,T0 * a1){
- T0 * R=NULL;
- R=rT132expanded_initializer((T132*)rT134item((T134*)(C)->_list,1),a1);
- return R;
- }
- void rT133check_expanded_with(T133 *C,T0 * a1){
- /*IF*/if ((((T134*)(C)->_list)->_upper)>(1)) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(a1,(T0 *)ms1423);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT132start_position((T132*)rT134item((T134*)(C)->_list,1)));
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(rT132start_position((T132*)rT134item((T134*)(C)->_list,2)));
- /*(IRF3*/rT133fatal_error((T0 *)ms1424);
- /*)*/}
- /*FI*/rT132check_expanded_with((T132*)rT134item((T134*)(C)->_list,1),a1);
- }
- T0 * rT222to_runnable(T222 *C,T0 * a1){
- T0 * R=NULL;
- int _i=0;
- int _ne=0;
- /*IF*/if (((int)(C)->_run_compound)) {
- {T222 *n=((T222*)new(222));
- /*(IRF3*/((n)->_list)=(rT222clone(C,(C)->_list));
- /*)*/R=(T0 *)n;}
- R=rT222to_runnable((T222*)R,a1);
- }
- else {
- C->_run_compound=a1;
- _ne=/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/;
- _i=1;
- while (!(((_i)>(((T223*)(C)->_list)->_upper))||(((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)-(_ne))>(0)))) {
- rT223put((T223*)(C)->_list,rT221to_runnable((T221*)rT223item((T223*)(C)->_list,_i),a1),_i);
- _i=(_i)+(1);
- }
- R=(T0 *)C;
- }
- /*FI*/return R;
- }
- int rT222use_current(T222 *C){
- int R=0;
- int _i=0;
- _i=1;
- while (!(((_i)>(((T223*)(C)->_list)->_upper))||(R))) {
- R=rT221use_current((T221*)rT223item((T223*)(C)->_list,_i));
- _i=(_i)+(1);
- }
- return R;
- }
- T0* rT222clone(T222 *C,T0* a1){
- T0* R=NULL;
- /*IF*/if (((int)a1)) {
- R=(T0 *)new(a1->id);
- AF_1
- XrT28copy(R,a1);
- AF_0
- }
- /*FI*/return R;
- }
- void rT222add_last(T222 *C,T0 * a1){
- rT223add_last((T223*)(C)->_list,a1);
- }
- int rT222compile_to_c(T222 *C){
- int R=0;
- int _i=0;
- int _previous=0;
- int _state=0;
- _i=1;
- while (!((_state)==(2))) {
- {int iv1=_state;
- if (0 == iv1) goto l471;
- goto l472;
- l471: ;
- /*IF*/if ((_i)>(((T223*)(C)->_list)->_upper)) {
- _state=2;
- R=_previous;
- }
- else {
- _previous=rT221compile_to_c((T221*)rT223item((T223*)(C)->_list,_i),0);
- {int iv2=_previous;
- if (1012 == iv2) goto l474;
- goto l475;
- l474: ;
- _state=1;
- goto l473;
- l475: ;
- if (1011 == iv2) goto l476;
- goto l477;
- l476: ;
- goto l473;
- l477: ;
- if (1010 == iv2) goto l478;
- goto l479;
- l478: ;
- R=1010;
- _state=2;
- goto l473;
- l479: ;
- l473: ;
- }
- }
- /*FI*/goto l470;
- l472: ;
- /*IF*/if ((_i)>(((T223*)(C)->_list)->_upper)) {
- _state=2;
- {int iv2=_previous;
- if (1010 == iv2) goto l481;
- goto l482;
- l481: ;
- R=1010;
- goto l480;
- l482: ;
- R=1012;
- l480: ;
- }
- }
- else {
- _previous=rT221compile_to_c((T221*)rT223item((T223*)(C)->_list,_i),1);
- {int iv2=_previous;
- if (1012 == iv2) goto l484;
- goto l485;
- l484: ;
- goto l483;
- l485: ;
- if (1011 == iv2) goto l486;
- goto l487;
- l486: ;
- goto l483;
- l487: ;
- if (1010 == iv2) goto l488;
- goto l489;
- l488: ;
- _state=2;
- R=1010;
- goto l483;
- l489: ;
- l483: ;
- }
- }
- /*FI*/ l470: ;
- }
- _i=(_i)+(1);
- }
- return R;
- }
- void rT222copy(T222 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- T0 * rT221current_type(T221 *C){
- T0 * R=NULL;
- R=((T140*)(C)->_run_compound)->_current_type;
- return R;
- }
- T0 * rT221to_runnable(T221 *C,T0 * a1){
- T0 * R=NULL;
- T0 * _t=NULL;
- T0 * _tc=NULL;
- T0 * _e=NULL;
- /*IF*/if (!((C)->_run_compound)) {
- C->_run_compound=a1;
- _e=XrT68to_runnable((C)->_expression,rT221current_type(C));
- /*IF*/if (!(_e)) {
- rT221error(XrT68start_position((C)->_expression),(T0 *)ms1228);
- }
- else {
- C->_expression=_e;
- _t=XrT68result_type((C)->_expression);
- /*IF*/if (!(XrT58is_boolean(_t))) {
- /*UT*/(T45*)oRBC27eh;
- rT45append((T0 *)ms1229);
- /*UT*/(T45*)oRBC27eh;
- rT45add_type(XrT68result_type((C)->_expression),(T0 *)ms479);
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT68start_position((C)->_expression));
- rT45print_as_error((T45*)oRBC27eh);
- }
- /*FI*/}
- /*FI*//*IF*/if (((int)(C)->_then_compound)) {
- _tc=rT140to_runnable((T140*)(C)->_then_compound,rT221current_type(C));
- /*IF*/if (((int)_tc)) {
- C->_then_compound=_tc;
- }
- /*FI*/}
- /*FI*//*IF*/if ((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)==(0)) {
- R=(T0 *)C;
- }
- /*FI*/}
- else {
- {T221 *n=((T221*)new(221));
- rT221make(n,(C)->_expression,(C)->_then_compound);
- R=(T0 *)n;}
- R=rT221to_runnable((T221*)R,a1);
- }
- /*FI*/return R;
- }
- void rT221error(/*C*/T0 * a1,T0* a2){
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(a1);
- rT45error((T45*)oRBC27eh,a2);
- }
- void rT221print_else(/*C*/int a1){
- /*IF*/if (a1) {
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1272);
- }
- /*FI*/}
- int rT221use_current(T221 *C){
- int R=0;
- R=XrT68use_current((C)->_expression);
- /*IF*/if ((!(R))&&(((int)(C)->_then_compound))) {
- R=rT140use_current((T140*)(C)->_then_compound);
- }
- /*FI*/return R;
- }
- int rT221compile_to_c(T221 *C,int a1){
- int R=0;
- int _trace=0;
- /*IF*/if (XrT68is_static((C)->_expression)) {
- R=XrT68static_value((C)->_expression);
- rT40incr_static_expression_count((T40*)oRBC27cpp);
- /*IF*/if ((R)==(1)) {
- rT221print_else(a1);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1273);
- /*IF*/if (((int)(C)->_then_compound)) {
- rT140compile_to_c((T140*)(C)->_then_compound);
- }
- /*FI*/rT40put_string((T40*)oRBC27cpp,(T0 *)ms1274);
- R=1010;
- }
- else {
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1275);
- R=1011;
- }
- /*FI*/}
- else {
- R=1012;
- _trace=(!(XrT68c_simple((C)->_expression)))&&(rT44no_check((T44*)oRBC27eiffel_run_control));
- rT221print_else(a1);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1276);
- /*IF*/if (_trace) {
- rT40trace_boolean_expression((T40*)oRBC27cpp,(C)->_expression);
- }
- else {
- XrT68compile_to_c((C)->_expression);
- }
- /*FI*/rT40put_string((T40*)oRBC27cpp,(T0 *)ms1278);
- /*IF*/if (((int)(C)->_then_compound)) {
- rT140compile_to_c((T140*)(C)->_then_compound);
- }
- /*FI*/rT40put_string((T40*)oRBC27cpp,(T0 *)ms1279);
- }
- /*FI*/return R;
- }
- void rT221copy(T221 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT221make(T221 *C,T0 * a1,T0 * a2){
- C->_expression=a1;
- C->_then_compound=a2;
- }
- T0 * rT218current_type(T218 *C){
- T0 * R=NULL;
- /*IF*/if (((int)(C)->_run_compound)) {
- R=((T140*)(C)->_run_compound)->_current_type;
- }
- /*FI*/return R;
- }
- T0 * rT218to_runnable(T218 *C,T0 * a1){
- T0 * R=NULL;
- T0 * _ec=NULL;
- T0 * _itl=NULL;
- int _ne=0;
- _ne=/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/;
- /*IF*/if (!((C)->_run_compound)) {
- C->_run_compound=a1;
- _itl=rT222to_runnable((T222*)(C)->_ifthenlist,a1);
- /*IF*/if (!(_itl)) {
- }
- else {
- C->_ifthenlist=_itl;
- }
- /*FI*//*IF*/if ((((/*(IRF4*/((T45*)oRBC27eh)->_nb_errors/*)*/)-(_ne))==(0))&&(((int)(C)->_else_compound))) {
- _ec=rT140to_runnable((T140*)(C)->_else_compound,rT218current_type(C));
- /*IF*/if (!(_ec)) {
- }
- else {
- C->_else_compound=_ec;
- }
- /*FI*/}
- /*FI*//*IF*/if (((int)_itl)) {
- R=(T0 *)C;
- }
- /*FI*/}
- else {
- R=rT218to_runnable((T218*)rT218clone(C,(T0 *)C),a1);
- }
- /*FI*/return R;
- }
- T0 * rT218add_comment(T218 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- else {/*AT*//*IF*/if ((rT59count((T59*)a1))==(1)) {
- R=(T0 *)C;
- }
- else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/}
- /*FI*/return R;
- }
- int rT218use_current(T218 *C){
- int R=0;
- /*IF*/if (rT222use_current((T222*)(C)->_ifthenlist)) {
- R=1;
- }
- else if (((int)(C)->_else_compound)) {
- R=rT140use_current((T140*)(C)->_else_compound);
- }
- /*FI*/return R;
- }
- T0* rT218clone(T218 *C,T0* a1){
- T0* R=NULL;
- /*IF*/if (((int)a1)) {
- R=(T0 *)new(a1->id);
- AF_1
- XrT28copy(R,a1);
- AF_0
- }
- /*FI*/return R;
- }
- void rT218add_if_then(T218 *C,T0 * a1,T0 * a2){
- T0 * _ifthen=NULL;
- {T221 *n=((T221*)new(221));
- rT221make(n,a1,a2);
- _ifthen=(T0 *)n;}
- /*IF*/if (!((C)->_ifthenlist)) {
- {T222 *n=((T222*)new(222));
- /*(IRF3*/((n)->_list)=(ma(223,0,1,_ifthen));
- /*)*/C->_ifthenlist=(T0 *)n;}
- }
- else {
- rT222add_last((T222*)(C)->_ifthenlist,_ifthen);
- }
- /*FI*/}
- void rT218compile_to_c(T218 *C){
- int _static_value=0;
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1271);
- _static_value=rT222compile_to_c((T222*)(C)->_ifthenlist);
- {int iv1=_static_value;
- if (1011 == iv1) goto l491;
- goto l492;
- l491: ;
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1280);
- /*IF*/if (((int)(C)->_else_compound)) {
- rT140compile_to_c((T140*)(C)->_else_compound);
- }
- /*FI*/goto l490;
- l492: ;
- if (1010 == iv1) goto l493;
- goto l494;
- l493: ;
- goto l490;
- l494: ;
- if (1012 == iv1) goto l495;
- goto l496;
- l495: ;
- /*IF*/if (((int)(C)->_else_compound)) {
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1281);
- rT140compile_to_c((T140*)(C)->_else_compound);
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1282);
- }
- /*FI*/goto l490;
- l496: ;
- l490: ;
- }
- rT40put_string((T40*)oRBC27cpp,(T0 *)ms1283);
- }
- void rT218copy(T218 *C,T0 * a1){
- C->_start_position=((T218*)a1)->_start_position;
- C->_ifthenlist=((T218*)a1)->_ifthenlist;
- C->_else_compound=((T218*)a1)->_else_compound;
- }
- int rT59count(T59 *C){
- int R=0;
- R=rT41count((T41*)(C)->_list);
- return R;
- }
- void rT59add_last(T59 *C,T0* a1){
- rT41add_last((T41*)(C)->_list,a1);
- }
- void rT59copy(T59 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT59make(T59 *C,T0 * a1,T0* a2){
- C->_start_position=a1;
- C->_list=a2;
- }
- void rT119copy(T119 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT119make(T119 *C,T0 * a1,T0 * a2){
- C->_old_name=a1;
- C->_new_name=a2;
- }
- void rT120fatal_error(/*C*/T0* a1){
- rT45fatal_error((T45*)oRBC27eh,a1);
- }
- void rT120get_started(T120 *C,T0 * a1){
- T0 * _rp=NULL;
- int _i=0;
- _i=((T121*)(C)->_list)->_upper;
- while (!((_i)==(0))) {
- _rp=rT121item((T121*)(C)->_list,_i);
- /*IF*/if (!(rT50has((T50*)a1,((T119*)_rp)->_old_name))) {
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(XrT67start_position(((T119*)_rp)->_old_name));
- rT120fatal_error((T0 *)ms420);
- }
- /*FI*/_i=(_i)-(1);
- }
- }
- void rT120add_last(T120 *C,T0 * a1){
- rT121add_last((T121*)(C)->_list,a1);
- }
- int rT120affect(T120 *C,T0 * a1){
- int R=0;
- T0 * _rp=NULL;
- int _i=0;
- _i=((T121*)(C)->_list)->_upper;
- while (!((R)||((_i)==(0)))) {
- _rp=rT121item((T121*)(C)->_list,_i);
- /*IF*/if ((XrT67same_as(((T119*)_rp)->_new_name,a1))||(XrT67same_as(((T119*)_rp)->_old_name,a1))) {
- R=1;
- }
- else {
- _i=(_i)-(1);
- }
- /*FI*/}
- return R;
- }
- T0 * rT120to_new_name(T120 *C,T0 * a1){
- T0 * R=NULL;
- int _i=0;
- _i=1;
- while (!((((int)R))||((_i)>(((T121*)(C)->_list)->_upper)))) {
- /*IF*/if (XrT67same_as(((T119*)rT121item((T121*)(C)->_list,_i))->_old_name,a1)) {
- R=((T119*)rT121item((T121*)(C)->_list,_i))->_new_name;
- }
- /*FI*/_i=(_i)+(1);
- }
- /*IF*/if (!(R)) {
- R=a1;
- }
- /*FI*/return R;
- }
- void rT120copy(T120 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- T0 * rT120to_old_name(T120 *C,T0 * a1){
- T0 * R=NULL;
- int _i=0;
- _i=1;
- while (!((((int)R))||((_i)>(((T121*)(C)->_list)->_upper)))) {
- /*IF*/if (XrT67same_as(((T119*)rT121item((T121*)(C)->_list,_i))->_new_name,a1)) {
- R=((T119*)rT121item((T121*)(C)->_list,_i))->_old_name;
- }
- /*FI*/_i=(_i)+(1);
- }
- /*IF*/if (!(R)) {
- R=a1;
- }
- /*FI*/return R;
- }
- T0 * rT213to_runnable(T213 *C,T0 * a1){
- T0 * R=NULL;
- T0 * _al=NULL;
- /*IF*/if (!((C)->_run_compound)) {
- C->_run_compound=a1;
- /*IF*/if (rT44all_check((T44*)oRBC27eiffel_run_control)) {
- _al=rT214to_runnable((T214*)(C)->_check_invariant,((T140*)a1)->_current_type);
- /*IF*/if (!(_al)) {
- rT213error(rT213start_position(C),(T0 *)ms1226);
- }
- else {
- C->_check_invariant=_al;
- R=(T0 *)C;
- }
- /*FI*/}
- else {
- R=(T0 *)C;
- }
- /*FI*/}
- else {
- {T213 *n=((T213*)new(213));
- rT213make(n,rT213start_position(C),NULL,((T214*)(C)->_check_invariant)->_list);
- R=(T0 *)n;}
- R=rT213to_runnable((T213*)R,a1);
- }
- /*FI*/return R;
- }
- void rT213error(/*C*/T0 * a1,T0* a2){
- /*UT*/(T45*)oRBC27eh;
- rT45add_position(a1);
- rT45error((T45*)oRBC27eh,a2);
- }
- T0 * rT213add_comment(T213 *C,T0 * a1){
- T0 * R=NULL;
- /*IF*/if ((!(a1))||((rT59count((T59*)a1))==(0))) {
- R=(T0 *)C;
- }
- else {/*AT*//*IF*/if ((rT59count((T59*)a1))==(1)) {
- R=(T0 *)C;
- }
- else {
- {T216 *n=((T216*)new(216));
- rT216make(n,(T0 *)C,a1);
- R=(T0 *)n;}}
- /*FI*/}
- /*FI*/return R;
- }
- T0 * rT213start_position(T213 *C){
- T0 * R=NULL;
- R=((T214*)(C)->_check_invariant)->_start_position;
- return R;
- }
- int rT213use_current(T213 *C){
- int R=0;
- /*IF*/if (rT44all_check((T44*)oRBC27eiffel_run_control)) {
- R=rT214use_current((T214*)(C)->_check_invariant);
- }
- /*FI*/return R;
- }
- void rT213compile_to_c(T213 *C){
- /*IF*/if (rT44all_check((T44*)oRBC27eiffel_run_control)) {
- rT214compile_to_c((T214*)(C)->_check_invariant);
- }
- /*FI*/}
- void rT213copy(T213 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT213make(T213 *C,T0 * a1,T0 * a2,T0* a3){
- {T214 *n=((T214*)new(214));
- rT214make(n,a1,a2,a3);
- C->_check_invariant=(T0 *)n;}
- }
- void rT257get_started(T257 *C,T0 * a1){
- int _i=0;
- _i=1;
- while (!((_i)>(((T258*)(C)->_list)->_upper))) {
- rT135add_into((T135*)rT258item((T258*)(C)->_list,_i),a1);
- _i=(_i)+(1);
- }
- }
- void rT257add_last(T257 *C,T0 * a1){
- rT258add_last((T258*)(C)->_list,a1);
- }
- void rT257copy(T257 *C,T0 * a1){
- /*IF*//*AF*//*AE*/
- memcpy(C,a1,s[C->id]);
- /*FI*/}
- void rT92cecil_in(T92 *C,T0* a1){
- T0 * _t=NULL;
- int _i=0;
- _i=1;
- while (!((_i)>(rT92count(C)))) {
- _t=XrT58run_type(rT92type(C,_i));
- /*IF*/if (XrT58is_expanded(_t)) {
- XrT58mapping_c_in(_t,a1);
- rT7extend((T7*)a1,'\40');
- }
- else {
- rT7append((T7*)a1,(T0 *)ms791);
- }
- /*FI*/rT7extend((T7*)a1,'a');
- rT2append_in(_i,a1);
- _i=(_i)+(1);
- /*IF*/if ((_i)<=(rT92count(C))) {
- rT7extend((T7*)a1,'\54');
- }
- /*FI*/}
- }
-